﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.Diagnostics;

namespace ThreeByte.ActiveDeck.AddIn.Controls.Wizard.Pages
{
    /// <summary>
    /// Interaction logic for IntroPage.xaml
    /// </summary>
    public partial class IntroPage : Page
    {
        public IntroPage() {
            InitializeComponent();
        }


        private void Hyperlink_RequestNavigate(object sender, RequestNavigateEventArgs e) {
            Hyperlink link = (Hyperlink)sender;
            try {
                string webAddress = link.NavigateUri.AbsoluteUri;
                ProcessStartInfo ps = new ProcessStartInfo(webAddress);
                ps.UseShellExecute = true;
                Process.Start(ps);
            } catch(Exception) {

            }

            e.Handled = true;
        }

    }
}
